﻿@model ADIGRE.Domain.Pessoa
<fieldset>
    <legend>Dados de Usuário</legend>
    @if (Model.Id != 0)
    {
        @Html.HiddenFor(model => Model.Usuario.Id);
    }
    <div class="align-column">
        <div class="editor-label">
            @Html.LabelFor(model => Model.Usuario.NmLogin)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => Model.Usuario.NmLogin, new { autocomplete = "off", onCopy = "return false;", onPaste = "return false;" })
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => Model.Usuario.NmSenha)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => Model.Usuario.NmSenha, new { autocomplete = "off", onCopy = "return false;", onPaste = "return false;" })
        </div>
    </div>
    <div class="align-column">
        <div class="editor-label">
            @Html.LabelFor(model => model.Usuario.EnumPerfilAcesso)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.Usuario.EnumPerfilAcesso, (IEnumerable<SelectListItem>)ViewBag.Perfis, "Selecione", null)
        </div>
    </div>
</fieldset>
